﻿$(function () {
    centerBlock();
    if (location.hash && (location.hash != '')) {
        $('input[name="ReturnUrl"]').val($('input[name="ReturnUrl"]').val() + location.hash);
    }
    //$('.login-form :input[name="user"]').focus();
});

$(window).resize(centerBlock);

function centerBlock() {
    if ($(window).width() >= 480) {
        var wh = $(window).height();
        var bh = $('.login-box').height();
        $('.login-inner').css('height', (wh / 2) + (bh / 2));
    } else {
        $('.login-inner').css('height', 'auto');
    }
}